//
//  RechargeRecordCell.m
//  BestLearning
//
//  Created by 星道 on 17/9/13.
//  Copyright © 2017年 apple. All rights reserved.
//

#import "RechargeRecordCell.h"

@implementation RechargeRecordCell
{
    IBOutlet UILabel *_time;
    IBOutlet UILabel *_mode;
    IBOutlet UILabel *_price;
}


- (void)setModel:(RechargeRecordModel *)model {

    _model = model;

    _time.text = [LLTools mgrTimeYY_MM_TT:model.createTime];
    _mode.text = [self UTF:model.type];
    _price.text = [NSString stringWithFormat:@"%.2f(%.2f)",[model.paid doubleValue],[model.coins doubleValue]];
}

- (NSString *)UTF:(NSNumber *)type {

    return [@{
             @"1":@"手动充值",
             @"2":@"优惠充值"
             } objectForKey:[type stringValue]];
}
@end
